---
title: Picker
description: A Jetpack Compose Picker component for selecting options from a list.
sourceCodeUrl: 'https://github.com/expo/expo/tree/main/packages/expo-ui'
packageName: '@expo/ui'
platforms: ['android']
---

import APISection from '~/components/plugins/APISection';
import { APIInstallSection } from '~/components/plugins/InstallSection';
import { ContentSpotlight } from '~/ui/components/ContentSpotlight';
import { Tabs, Tab } from '~/ui/components/Tabs';

A picker component that allows users to select from a list of options with different display styles.

## Installation

<APIInstallSection />

## Radio picker

<Tabs>
  <Tab label="Preview">
    <ContentSpotlight
      alt="Picker component (radio) on Android."
      src="/static/images/expo-ui/radioPicker/android.png"
      className="max-w-[480px]"
    />
  </Tab>
  <Tab label="Code">
    ```tsx
    import { Picker } from '@expo/ui/jetpack-compose';

    <Picker
      options={['$', '$$', '$$$', '$$$$']}
      selectedIndex={selectedIndex}
      onOptionSelected={({ nativeEvent: { index } }) => {
        setSelectedIndex(index);
      }}
      variant="radio"
    />
    ```

  </Tab>
</Tabs>

> See [official Jetpack Compose documentation](https://developer.android.com/develop/ui/compose/components/radio-button) for more information.

## Segmented picker

<Tabs>
  <Tab label="Preview">
    <ContentSpotlight
      alt="Picker component on Android."
      src="/static/images/expo-ui/segmentedPicker/android.png"
      className="max-w-[480px]"
    />
  </Tab>
  <Tab label="Code">
    ```tsx
    import { Picker } from '@expo/ui/jetpack-compose';

    <Picker
      options={['$', '$$', '$$$', '$$$$']}
      selectedIndex={selectedIndex}
      onOptionSelected={({ nativeEvent: { index } }) => {
        setSelectedIndex(index);
      }}
      variant="segmented"
    />
    ```

  </Tab>
</Tabs>

> See [official Jetpack Compose documentation](https://developer.android.com/develop/ui/compose/components/segmented-button) for more information.

## API

<APISection packageName="expo-ui/jetpack-compose/picker" apiName="Picker" />
